package com.dy.design_pattern_study.visitor_pattern.dome2.impl.status;

import com.dy.design_pattern_study.visitor_pattern.dome2.Action;
import com.dy.design_pattern_study.visitor_pattern.dome2.impl.Man;
import com.dy.design_pattern_study.visitor_pattern.dome2.impl.Woman;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-24
 * @Content
 */
public class Amativeness extends Action {
    @Override
    public void getManConclusion(Man concreteElement) {
        System.out.println(getClass().getSimpleName() + "，不懂装懂，不会装会");
        System.out.println("类名：" + concreteElement.getClass().getSimpleName());
    }

    @Override
    public void getWomanConclusion(Woman concreteElement) {
        System.out.println(getClass().getSimpleName() + "，会也不会，懂也不懂");
        System.out.println("类名：" + concreteElement.getClass().getSimpleName());
    }
}
